package org.jeecg.modules.vistor.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ag_visitor
 * @Author: jeecg-boot
 * @Date:   2020-05-22
 * @Version: V1.0
 */
@Data
@TableName("ag_visitor")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ag_visitor对象", description="ag_visitor")
public class AgVisitor implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**访客照片*/
	@Excel(name = "访客照片", width = 15)
    @ApiModelProperty(value = "访客照片")
    private String avatar;
	/**访客姓名*/
	@Excel(name = "访客姓名", width = 15)
    @ApiModelProperty(value = "访客姓名")
    private String visitorname;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String mobile;
	/**证件类型*/
	@Excel(name = "证件类型", width = 15)
    @ApiModelProperty(value = "证件类型")
    @Dict(dicCode = "cardType")
    private String cardtype;
	/**证件编号*/
	@Excel(name = "证件编号", width = 15)
    @ApiModelProperty(value = "证件编号")
    private String cardno;
	/**接待人姓名*/
	@Excel(name = "接待人姓名", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "接待人姓名")
    private String receivername;
	/**接待人部门*/
	@Excel(name = "接待人部门", width = 15)
    @ApiModelProperty(value = "接待人部门")
    private Integer department;
	/**进入时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "进入时间")
    private Date createTime;
}
